<h3 class='ui-state-active'><?php __("Danh mục tin")?></h3>
<div class="links">
	<ul>
		<li><a href="<?php echo $html->url(array('plugin' => 'news', 'controller'=>'manage_news_categories', 'action'=>'index'))?>"><?php __("Danh sách danh mục")?></a></li>
		<li><a href="<?php echo $html->url(array('plugin' => 'news', 'controller'=>'manage_news_categories', 'action'=>'add'))?>"><?php __("Tạo danh mục mới")?></a></li>
	</ul>
</div>
<h3 class='ui-state-active'><?php __("Tin tức chung")?></h3>
<?php $newsCats = ClassRegistry::init('news.NewsCategory')->find('all', array(
	'conditions'	=>	array(
		'NewsCategory.parent_id'	=>	1
	),
	'fields'	=>	array('name', 'alias'),
    'order'     =>  'lft',
	'contain'	=>	array()
));?>
<div class="links">
	<ul>
		<?php foreach ($newsCats as $cat):?>
		<li><a href="<?php echo $html->url(array('plugin' => 'news', 'controller' => 'manage_news', 'action' => 'index', 'root' => $cat['NewsCategory']['alias']))?>"><?php echo $cat['NewsCategory']['name']?></a></li>
		<?php endforeach;?>
	</ul>
</div>